//
//  YHTimeSubViewCell.m
//  ZhuKuang
//
//  Created by jjkj on 17/7/11.
//  Copyright © 2017年 jjkj. All rights reserved.
//

#import "YHTimeSubViewCell.h"

@interface YHTimeSubViewCell()
/**标题*/
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
/**详情*/
@property (weak, nonatomic) IBOutlet UILabel *numLabel;


@end
@implementation YHTimeSubViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setAlarmDetailModel:(AlarmDetailModel *)alarmDetailModel
{
    if (self.isSingle) {
        //报警
        self.nameLabel.textColor = [UIColor colorWithHexString:@"#FF6455"];
        self.numLabel.textColor = [UIColor colorWithHexString:@"#FF6455"];
    }else{
      //详情
        self.nameLabel.textColor = [UIColor colorWithHexString:@"#1886C8"];
        self.numLabel.textColor = [UIColor colorWithHexString:@"#1886C8"];
    }
    self.nameLabel.text = alarmDetailModel.key;
    self.numLabel.text = alarmDetailModel.value;
}
@end
